include_directories("smartctl/")
aux_source_directory(./smartctl CODE)
add_library(kyrealtime SHARED libkyrealtimeinfo.cpp libkyrealtimeinfo.h ${CODE})
set_target_properties(kyrealtime PROPERTIES VERSION 2.0.0 SOVERSION 1)

add_executable(kyrealtime-test test/kyrealtime-test.cpp)
target_link_libraries(kyrealtime-test kyrealtime)

install(TARGETS kyrealtime
        DESTINATION lib/kysdk/kysdk-system)

install(FILES libkyrealtimeinfo.h
        DESTINATION include/kysdk/kysdk-system)